import {observable, computed, action, autorun,runInAction, makeObservable} from 'mobx';
class Store {
    @observable name= "xiaowang"
    //this指向,没有action函数无法触发
    constructor(){
        makeObservable(this);
    }
    @action setName=(text)=>{
        //this指向
        this.name = text
    }
}
export default Store
